import {observable ,action,makeObservable} from 'mobx'

class RootStore {
   constructor() {
      makeObservable(this)
   }
   // 手机号码
   @observable mobile = '';

   // token
   @observable token = '';

   // 用户唯一Id
   @observable userId = '';

   @action setUserInfo(mobile,token,userId){
      this.mobile = mobile;
      this.token = token;
      this.userId = userId;
   }
}

export default new RootStore()